Page({
  data: {
    colors: ['#ffffff', '#ffffff', '#ffffff', '#ffffff']
  },
  start: function (e) {
    var array = this.data.colors
    var index = e.currentTarget.dataset.index
    array[index] = '#aaaaaa'
    this.setData({
      colors: array
    });
  },
  end: function (e) {
    var array = this.data.colors
    var index = e.currentTarget.dataset.index
    array[index] = '#ffffff'
    this.setData({
      colors: array
    })
    if (index == 0) {
      wx.navigateTo({
        url: '../cycle/cycle'
      })
    } else if (index == 1) {
      wx.navigateTo({
        url: '../wages/wages'
      })
    } else if (index == 2) {
      // wx.navigateTo({
      //   url: '../admSetup/admSetup'
      // })
    } else if (index == 3) {
      wx.navigateTo({
        url: '../explain/explain'
      })
    }
  }
})